//
//  TableHeaderView.m
//  欢乐美食
//
//  Created by 遇水 on 15/6/8.
//  Copyright (c) 2015年 遇水. All rights reserved.
//

#import "TableHeaderView.h"
@interface TableHeaderView()

@property (weak, nonatomic) IBOutlet UILabel *collectesNumber;      //收藏的个数
- (IBAction)collectes;      //显示收藏



@end

@implementation TableHeaderView

//+(instancetype) tableHeaderView{
//    return [[[NSBundle mainBundle] loadNibNamed:@"TableHeaderView"  owner:nil options:nil] lastObject];
//}
//
//- (instancetype)initWithCoder:(NSCoder *)coder
//{
//    self = [super initWithCoder:coder];
//    if (self) {
//
//        MSLog(@"--------------dayinshuju");
//        
//        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//        [button setBackgroundImage:[UIImage imageNamed:@"facebook_bg"] forState:UIControlStateSelected];
//        [button setBackgroundImage:[UIImage imageNamed:@"imgbg"] forState:UIControlStateNormal];
//        
//        [button addTarget:self action:@selector(clickButton:) forControlEvents:UIControlEventTouchUpInside];
////        _userDingDan = button;
////        _systemConfig = button;
////        _userInfo = button;
//        
//        
//        UIImageView *imageView = [[UIImageView alloc]init];
//        imageView.layer.cornerRadius = 5;
//        
//        
//        NSUserDefaults *defaults =  [NSUserDefaults standardUserDefaults];
//        [defaults setValue:@"你倒是谁" forKey:@"userName"];
//        [defaults synchronize];
//        
//        
//        
//        [imageView setImage:[defaults objectForKey:@"userImage"]];
//        _userImage = imageView;
//        
//        
//        UILabel *label = [[UILabel alloc]init];
//        [_userName setText:[defaults valueForKey:@"userName"]];
//        
//        MSLog(@"%@",[defaults valueForKey:@"userName"]);
//
//        self.autoresizingMask = UIViewAutoresizingNone;
//        //进行设置
////        [_userInfo addTarget:self action:@selector(clickButton:) forControlEvents:UIControlEventTouchUpInside];
////        _userDingDan.selected = YES;
////        [_userDingDan addTarget:self action:@selector(clickButton:) forControlEvents:UIControlEventTouchUpInside];
////        [_systemConfig addTarget:self action:@selector(clickButton:) forControlEvents:UIControlEventTouchUpInside];
////        
////        _selectedButton = _userDingDan;
//        
//    }
//    return self;
//}
//
///**
// *  修改选中按钮
// *
// *  @param button
// */
//
//-(IBAction)clickButton:(UIButton *)button{
//    switch (button.tag) {
//        case 0:
//            
//            break;
//        case 1:
//            
//            break;
//            
//        case 2:
//            
//            break;
//            
//            
//        default:
//            break;
//    }
//    //取消选中
//    _selectedButton.selected = NO;
//    //设置按钮选中状态
//    button.selected = YES;
//    //设置选中按钮
//    _selectedButton = button;
//    
//}
//
//


- (IBAction)collectes {
    //显示收藏
    
    
}
@end
